Socket
Socket
Sign inDemoInstall

detective-less

Package Overview
Dependencies
6
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    detective-less

Find the dependencies of a less file


Version published
Weekly downloads
361K
decreased by-26.58%
Maintainers
1
Install size
2.13 MB
Created
Weekly downloads
 

Readme

Source

detective-less npm npm

Find the dependencies of a less file

npm install --save detective-less

This is a fork of a package by mrjoelkemp given a lack of a less detective, it is the counterpart to detective, detective-amd, detective-sass, detective-scss and detective-es6.

  • The AST is generated using the gonzales-pe parser.

Usage

var detective = require('detective-less');

var content = fs.readFileSync('styles.less', 'utf8');

// list of imported file names (ex: 'foo.less', 'foo', etc)
var dependencies = detective(content);

License

MIT

Keywords

FAQs

Last updated on 26 Sep 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc